open Web Socket Flow
inline fun <T : Any> <Error class: unknown class>.openWebSocketFlow( url: String, useSecureConnection: Boolean, noinline checkReconnection: suspend (Throwable?) -> Boolean = { true }, noinline requestBuilder: <Error class: unknown class>.() -> Unit = {}): Flow<T>
Content copied to clipboard
inline fun <T : Any> <Error class: unknown class>.openWebSocketFlow( url: String, noinline checkReconnection: suspend (Throwable?) -> Boolean = { true }, noinline requestBuilder: <Error class: unknown class>.() -> Unit = {}): Flow<T>
Content copied to clipboard
Parameters
check Reconnection
This lambda will be called when it is required to reconnect to websocket to establish connection. Must return true in case if must be reconnected. By default always reconnecting